<template>
    <view class="box" @click="$emit('click', id)">
        Box {{ id }}
    </view>
</template>

<script>
export default {
    props: {
        id: Number,
    },
}
</script>

<style scoped lang="scss">
.box {
    display: inline-block;
    margin: 10px;
    padding: 20px;
    background-color: green;
    color: white;
    border-radius: 5px;
    text-align: center;
    min-width: 80px;
    cursor: pointer;
}
</style>
